package com.lu.service.impl;

import com.lu.dao.Userdao;
import com.lu.pojo.User;
import com.lu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    Userdao userdao;
    @Override
    public List<User> findall() {
        return userdao.findall();
    }

    @Override
    public User findById(Integer id) {
        return userdao.findById(id);
    }
}
